const routes = [
  {
    name: '首页',
    path: '/',
    component: './Home',
  },
  {
    name: '可视化大屏',
    path: '/dataScreen',
    hideInMenu: true,
    layout: false,
    component: './DataScreen',
  },
  {
    name: '权限演示',
    path: '/access',
    component: './Access',
    // access: 'isCanReadPageA', // 权限定义返回值的某个 key
  },
  {
    name: ' CRUD 示例',
    path: '/table',
    component: './Table',
  },
  {
    name: '组件',
    path: '/component',
    routes: [
      {
        name: 'PDF展示',
        path: '/component/pdf',
        component: './Component/Pdf',
      },
      {
        name: '拖拽元素',
        path: '/component/dragList',
        component: './Component/DragList',
      },
      {
        name: '酷炫登录',
        path: '/component/login',
        component: './Component/Login',
      },
      {
        name: '可视化大屏',
        path: '/component/screen',
        component: './Component/Screen',
      },
      {
        name: '大文件上传',
        path: '/component/bigUpload',
        component: './Component/BigUpload',
      },
      {
        name: '跨页面通信',
        path: '/component/pageA',
        component: './Component/AcrossPages',
      },
      {
        name: '虚拟列表',
        path: '/component/list',
        component: './Component/List',
      },
    ],
  },
  {
    name: '跨页面通信',
    hideInMenu: true,
    layout: false,
    path: '/pageB',
    component: './Component/AcrossPages1',
  },
  { path: '/*', component: '@/pages/404' },
];

export default routes;
